package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 描述 The type Project progress.
 *
 * @author code -generate
 * @created 2021 -09-01 17:38:20
 * @date 2021 -09-01
 */
@Data
@DbTable(tableName = "t_project_progress")
public class ProjectProgress extends BaseEntity {

    /**
     * 项目Id
     */
    @DbTableField(columnName = "c_project_id", dbType = DbTypeEnum.INTEGER)
    public Integer projectId ;

    /**
     * 阶段名称
     */
    @DbTableField(columnName = "c_name", dbType = DbTypeEnum.VARCHAR)
    public String name ;

    /**
     * 开始时间
     */
    @DbTableField(columnName = "c_begin_date")
    @JsonFormat(shape = JsonFormat.Shape.STRING, timezone = "GMT+8", pattern = "yyyy-MM-dd")
    public LocalDateTime beginDate ;

    /**
     * 完成时间
     */
    @DbTableField(columnName = "c_end_date")
    @JsonFormat(shape = JsonFormat.Shape.STRING, timezone = "GMT+8", pattern = "yyyy-MM-dd")
    public LocalDateTime endDate ;

    /**
     * 意见
     */
    @DbTableField(columnName = "c_content", dbType = DbTypeEnum.VARCHAR)
    public String content ;

    /**
     * 阶段负责人
     */
    @DbTableField(columnName = "c_main_user", dbType = DbTypeEnum.VARCHAR)
    public String mainUser ;

    /**
     * 阶段负责单位
     */
    @DbTableField(columnName = "c_main_dept", dbType = DbTypeEnum.VARCHAR)
    public String mainDept ;

    /**
     * 阶段完成进度
     */
    @DbTableField(columnName = "c_progress", dbType = DbTypeEnum.FLOAT)
    public Float progress ;

    @ApiModelProperty(value = "文件")
    private List<ProjectFile> fileList;
}
